import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userPhotoState: 'https://img.yzcdn.cn/vant/cat.jpeg',
    userNameState: '1388888'
  },
  mutations: {
    setUserPhotoMutations (state, photo) {
      state.userPhotoState = photo
    },
    setUserNameMutations  (state, uname) {
      state.userNameState = uname
    }
  },
  actions: {
  },
  modules: {
  }
})
